<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>DEMO LAPI: Reserva de Pistas</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="assets/css/bootstrap.css" rel="stylesheet">
    <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
    <link href="assets/css/docs.css" rel="stylesheet">
    <link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
    <link rel='stylesheet' type='text/css' href='assets/css/fullcalendar.css' />
    <link rel='stylesheet' type='text/css' href='assets/css/fullcalendar.print.css' media='print' />

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
  </head>

  <body data-spy="scroll" data-target=".subnav" data-offset="50">


  <!-- Navbar
    ================================================== -->
    <nav class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="./index.html">DEMO LAPI</a>
          <div class="nav-collapse">

            <ul class="nav">
              <li class="active">
                <a href="./index.html">Haz tu reserva</a>
              </li>
              <li class="">
                <a href="./contacto.html">Contactar</a>
              </li>            
            </ul>

            <ul class="nav pull-right">
              <li class="divider-vertical"/>
              <li>
                <a href="login.html" tittle="Entrar">Entrar
                </a> 
              </li> 
            </ul>
          </div>
        </div>
      </div>
    </nav>


    <section class="container">

      <!-- Masthead
      ================================================== -->
      <div class="hero-unit">
          <h1>Reserva tu pista por internet!!</h1>
          <p class="lead">Selecciona los datos acerca de la pista en la que quieres realizar la actividad, y reservala electrónicamente</p>
      </div>

      <div class="marketing">
        <div class="row-fluid">
          <div class="span12">
            <form class="form-horizontal">


              <div class="row-fluid">
                <div class="span6">

                    <div class="page-header">
                        <h3>Consulta tu pista favorita
                        <small>...</small></h3>
                    </div>

                     <div class="control-group">
                      <label class="control-label" for="selectCentro">Centro</label>
                      <div class="controls">
                        <select id="selectCentro">
                          <option/>
                          <option>centro1</option>
                          <option>centro2</option>
                          <option>centro3</option>
                          <option>centro4</option>
                          <option>centro5</option>
                        </select>
                         <p class="help-block"><small>Seleccione un centro del listado</small></p>
                      </div>
                    </div>

                    <div class="control-group">
                      <label class="control-label" for="selectDeporte">Deporte</label>
                      <div class="controls">
                        <select id="selectDeporte">
                          <option/>
                          <option>deporte1</option>
                          <option>deporte2</option>
                          <option>deporte3</option>
                          <option>deporte4</option>
                          <option>deporte5</option>
                        </select>
                         <p class="help-block"><small>Seleccione un deporte del listado</small></p>
                      </div>
                    </div>

                    <div class="control-group">                      
                      <label class="control-label" for="selectPista">Pista</label>
                      <div class="controls">
                        <select id="selectPista">
                          <option/>
                          <option>pista1</option>
                          <option>pista2</option>
                          <option>pista3</option>
                          <option>pista4</option>
                          <option>pista5</option>
                        </select>
                         <p class="help-block"><small>Seleccione una pista del listado</small></p>
                      </div>
                    </div>

                      <div class="offset1">
                        <button type="submit" class="btn-large btn-primary">Ver Pista</button>
                      </div> 
                  </div>

                  <div class="span6">

                      <div class="page-header">
                          <h3><small>...</small>
                          o realiza una búsqueda de disponibilidad</h3>
                      </div>

                      <div class="control-group">
                        <label class="control-label" for="selectDeporte">Deporte</label>
                        <div class="controls">
                          <select id="selectDeporte">
                            <option/>
                            <option>deporte1</option>
                            <option>deporte2</option>
                            <option>deporte3</option>
                            <option>deporte4</option>
                            <option>deporte5</option>
                          </select>
                           <p class="help-block"><small>Seleccione un deporte del listado</small></p>
                        </div>
                      </div>

                      <div class="control-group">                      
                        <label class="control-label" for="selectPista">Horario</label>
                        <div class="controls">
                          <select id="selectPista">
                            <option/>
                            <option>pista1</option>
                            <option>pista2</option>
                            <option>pista3</option>
                            <option>pista4</option>
                            <option>pista5</option>
                          </select>
                           <p class="help-block"><small>Seleccione una pista del listado</small></p>
                        </div>
                      </div>

                      <div class="offset1">
                        <button type="submit" class="btn-large btn-primary">Realizar Búsqueda!</button>
                      </div>

                  </div>

              </div>

              <hr class="soften">

              <div class="row-fluid">
                <div class="span12">  
                    <div id="calendar"></div>
                </div>
              </div>

            </form>
          </div>
        </div>

        <hr class="soften">
      </div> <!-- /.marketing -->

           <!-- Footer
            ================================================== -->
            <footer class="footer">
              <p class="pull-right"><a href="#">Volver arriba</a></p>
              <p>Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
            </footer>
    </section><!-- /container -->



    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
    <script src="assets/js/jquery.js"></script>
    <script src="assets/js/google-code-prettify/prettify.js"></script>
    <script src="assets/js/bootstrap-transition.js"></script>
    <script src="assets/js/bootstrap-alert.js"></script>
    <script src="assets/js/bootstrap-modal.js"></script>
    <script src="assets/js/bootstrap-dropdown.js"></script>
    <script src="assets/js/bootstrap-scrollspy.js"></script>
    <script src="assets/js/bootstrap-tab.js"></script>
    <script src="assets/js/bootstrap-tooltip.js"></script>
    <script src="assets/js/bootstrap-popover.js"></script>
    <script src="assets/js/bootstrap-button.js"></script>
    <script src="assets/js/bootstrap-collapse.js"></script>
    <script src="assets/js/bootstrap-carousel.js"></script>
    <script src="assets/js/bootstrap-typeahead.js"></script>
    <script src="assets/js/application.js"></script>
    <script type='text/javascript' src='assets/js/fullcalendar.js'></script>

    <script type='text/javascript'>

  $(document).ready(function() {
  
    var date = new Date();
    var d = date.getDate();
    var m = date.getMonth();
    var y = date.getFullYear();
    
    var calendar = $('#calendar').fullCalendar({
      header: {
        left: 'prev,next today',
        center: 'title',
        right: ''
      },
      selectable: true,
      selectHelper: true,
      select: function(start, end, allDay) {
        var title = prompt('Event Title:');
        if (title) {
          calendar.fullCalendar('renderEvent',
            {
              title: title,
              start: start,
              end: end,
              allDay: allDay
            },
            true // make the event "stick"
          );
        }
        calendar.fullCalendar('unselect');
      },
      editable: true,
      events: [
        {
          title: 'Prueab 1',
          start: new Date(y, m, 1)
        },
        {
          title: 'Prueba 2',
          start: new Date(y, m, d-5),
          end: new Date(y, m, d-2)
        },
        {
          id: 999,
          title: 'Prueba 3',
          start: new Date(y, m, d-3, 16, 0),
          allDay: false
        },
        {
          id: 999,
          title: 'Prueba 4',
          start: new Date(y, m, d+4, 16, 0),
          allDay: false
        },
        {
          title: 'Prueba 5',
          start: new Date(y, m, d, 10, 30),
          allDay: false
        },
        {
          title: 'Lunch',
          start: new Date(y, m, d, 12, 0),
          end: new Date(y, m, d, 14, 0),
          allDay: false
        },
        {
          title: 'Birthday Party',
          start: new Date(y, m, d+1, 19, 0),
          end: new Date(y, m, d+1, 22, 30),
          allDay: false
        },
        {
          title: 'Click for Google',
          start: new Date(y, m, 28),
          end: new Date(y, m, 29),
          allDay: false
        }
      ]
    });
    
    calendar.fullCalendar('changeView','agendaWeek');
    //calendar.maxTime = 12;
  });

</script>

  </body>
</html>
